<template>
  <div id="tj">
    <TJnav> </TJnav>

    <!-- 这里用瀑布流 -->
    <section class="Oshangpin">

      <section class="sp1">
        <section class="tu">
          <img src="@/assets/images/4.jpg" />
        </section>
        <section class="wen">
          <h1>论装X，乔老爷子也是天花板</h1>
          <section class="Owen">
            <div class="up">
              <section class="gerentu">
                <img src="@/assets/images/5.jpg" />
              </section>

              <section class="name">比肩正常人</section>
            </div>

            <section class="zan">
              <span class="iconfont icon-dianzan"></span>
              <span class="num">1546</span>
            </section>
          </section>
        </section>
      </section>

       <section class="sp1"  v-for="(v, i) in tj" :key="i">
        <section class="tu">
           <img :src="v.timg">
        </section>
        <section class="wen">
          <h1>{{v.ttitle}}</h1>
          <section class="Owen">
            <div class="up">
              <section class="gerentu">
                 <img :src="v.ttou">
              </section>

              <section class="name">{{v.tname}}</section>
            </div>

            <section class="zan">
              <span class="iconfont icon-dianzan"></span>
              <span class="num">{{v.tzan}}</span>
            </section>
          </section>
        </section>
      </section>

    

      

    
    </section>
  </div>
</template>

<script>
import axios from "axios";
import TJnav from "@/components/TJnav.vue";
export default {
  components: {
    TJnav,
  },
   data: function () {
    return {
      tj: [],
    };
  },
  created() {
    axios({
      url: "/data/mock",
      method: "get",
    })
      .then((ok) => {
        this.tj = ok.data.tuijian;
        console.log("ok", ok);
        console.log("this.gz", this.gz);
      })
      .catch((err) => {
        console.log("请求失败了", err);
      });
  },
};
</script>

<style scoped>
#tj {
  width: 100%;
  height: 100%;
  overflow: auto;
}
#tj img {
  width: 100%;
  height: 100%;
}
#tj .Oshangpin {
  column-count: 2;
  padding-left: .04rem;
  padding-right: .04rem;
}
#tj .Oshangpin .sp1 {
  width: 1.81rem;
  height: 100%;
  /* border: 1px solid black; */
  column-span: none;
  break-inside: avoid;
  margin-top: .08rem;
}
/* #tj .Oshangpin .sp1 .tu {
  
  border: 1px solid black;
} */
#tj .Oshangpin .sp1 .wen {
  padding: 0.08rem;
}
#tj .Oshangpin .sp1 .wen h1 {
  font-weight: 600;
  font-size: .16rem;
}
#tj .Oshangpin .sp1 .wen .Owen {
  display: flex;
  height: 0.25rem;
  justify-content: space-between;
}
#tj .Oshangpin .sp1 .wen .Owen .gerentu {
  width: 0.19rem;
  height: 0.16rem;
}
#tj .Oshangpin .sp1 .wen .Owen .up {
  display: flex;
  justify-content: space-between;
}
#tj .Oshangpin .sp1 .wen .Owen .name,
.zan {
  font-size: 0.1rem;
  color: slategray;
}
#tj .Oshangpin .sp1 .wen .Owen .name,
.zan .num {
  font-size: 0.1rem;
}

#tj .Oshangpin .sp2 {
  width: 1.81rem;
  height: 2.15rem;
  border: 1px solid black;
}
</style>